/*
 * @Author: cz
 * @Date: 2020-02-13 10:51
 * @Last Modified by:
 * @Last Modified time: 2020-02-13 10:51
 * @Description: 审批常用语
 */

import request from '@/router/axios'
import {commonUrls} from '@/const/apiUrl'

/**
 * 根据用户ID获取常用语
 * @param {*} query
 */
export function getPresentDeptCommonWords (id) {
  return request({
    url: commonUrls.getPresentDeptCommonWords+id,
    method: 'get',

  })
}

/**
 * 新增常用语
 * @param {*} query
 */
export function saveAsCommonWords (data) {
  return request({
    url: commonUrls.saveAsCommonWords,
    method: 'post',
    data:data
  })
}
